package org.ysu.service;

import org.springframework.transaction.annotation.Transactional;
import org.ysu.entity.RoleResource;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 角色与权限关联表 服务类
 * </p>
 *
 * @author CaoYuJia
 * @since 2024-08-19
 */
public interface RoleResourceService extends IService<RoleResource> {

    @Transactional
    boolean save(Long roleId, Long[] menuIds, Long[] btnIds);

    List<RoleResource> getByRoleId(Long roleId);
}
